/* App.vue */

html,
body {
    height: 100%;
    width: 100%;
    background-color: #fff;
}

.el-container {
    height: 100%;
    .el-header,
    .el-footer {
        width: 100%;
        padding: 0 !important;
    }
    .el-aside {
        background-color: #ededed;
    }
    .el-main {
        overflow-y: scroll;
        padding: 0 !important;
    }
    .center-content {
        height: 80% !important;
    }
}


/* play.vue */

.play {
    background: #f1f3f4;
    height: 100%;
    width: 100%;
    audio {
        width: 100%;
        border-radius: none;
        outline: none;
    }
}


/* top.vue */

.top {
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    .logo-title {
        font-size: 30px;
        @import url('http://cdn.repository.webfont.com/webfonts/nomal/140069/19673/5f242294f629d809a0b1d8d3.css');
        font-family: 'jdzhonyuanjian224a505aeb22325';
        height: 100%;
        cursor: pointer;
        span {
            display: block;
            height: 100%;
            width: 100%;
            text-align: center;
            line-height: 200%;
        }
         :hover {
            color: #409EFF;
        }
    }
    .control {
        height: 100%;
        i {
            display: inline-block;
            height: 40px;
            width: 40px;
            line-height: 40px;
            text-align: center;
            font-size: 25px;
            margin: 10px 5px;
            transition: background .5s;
            border-radius: 100%;
            cursor: pointer;
            &:hover {
                background-color: #409EFF;
                color: #f9f9f9;
            }
        }
    }
    .search {
        height: 100%;
        position: relative;
        input {
            outline: none;
            border: 2px solid #ededed;
            height: 30px;
            width: 230px;
            margin: 15px;
            padding-left: 25px;
            font-size: 16px;
            border-radius: 50px;
            &:focus {
                border-color: #409EFF;
            }
        }
        i {
            display: block;
            height: 40px;
            width: 40px;
            line-height: 40px;
            text-align: center;
            font-size: 16px;
            position: absolute;
            top: calc(50% - 17px);
            left: 10px;
            color: #999;
        }
    }
}


/*navbar.vue*/

.nav-bar {
    user-select: none;
    i {
        margin-right: 5px;
        margin-left: 15px;
        font-size: 18px;
    }
    span {
        font-size: 18px;
    }
    .iconfont {
        color: #000;
    }
    .active span {
        color: #409EFF;
    }
    .active .iconfont {
        color: #409EFF;
    }
}


/*major.vue*/

.main-content {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}


/*discovery.vue*/

.discovery {
    width: 1100px;
    margin: 10px auto;
    .carousel {
        margin: 20px auto 0 auto;
        img {
            height: 100%;
            width: 100%;
            border-radius: 10px;
        }
    }
    .title {
        font-size: 16px;
        font-weight: bold;
        padding: 40px 0 20px 0;
    }
    .new-music {
        width: 100%;
        ul {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            .music-item {
                width: 50%;
                margin-bottom: 10px;
                display: inline-block;
                img {
                    height: 80px;
                    width: 80px;
                    margin-right: 10px;
                    float: left;
                    cursor: pointer;
                }
                .item-detail {
                    float: left;
                }
                .item-name {
                    margin-top: 15px;
                }
                .item-artists {
                    font-size: 14px;
                    color: #999;
                    margin-top: 20px;
                }
            }
        }
    }
    .mv {
        width: 100%;
    }
}

.mvs-ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    .mv-item {
        position: relative;
        margin-right: 25px;
    }
    .viewers {
        position: absolute;
        right: 3px;
        top: 3px;
        color: #fff;
        i {
            margin-right: 5px;
        }
    }
    img {
        width: 250px;
        border-radius: 5px;
        cursor: pointer;
    }
    p {
        width: 250px;
    }
    .artist-name {
        color: #999;
        margin-top: 5px;
        font-size: 14px;
    }
    .item-name {
        display: -webkit-box;
        /* 显示2行 */
        -webkit-line-clamp: 2;
        /* 让子元素竖着排 */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.song-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    .song-item {
        width: 200px;
        height: 200px;
        margin: 0 20px 40px 0;
        cursor: pointer;
        img {
            width: 100%;
            height: 100%;
            border-radius: 5px;
        }
        .item-source {
            display: block;
        }
        .list-name {
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
    }
}


/*recommend.vue*/

.recommend-content {
    width: 1100px;
    margin: 10px auto;
    .top-card {
        display: flex;
        justify-content: space-between;
        padding: 20px;
        border-radius: 5px;
        position: relative;
        overflow: hidden;
        z-index: 0;
        background-color: #000;
        .card-bg {
            width: 100%;
            top: 0;
            left: 0;
            position: absolute;
            z-index: -1;
            opacity: .3;
        }
        .card-img {
            width: 160px;
            height: 160px;
            margin-right: 20px;
        }
        .card-detail {
            width: 85%;
        }
        input[type="button"] {
            background: none;
            color: #dfac67;
            outline: none;
            border: 1px solid #dfac67;
            width: 100px;
            height: 30px;
            font-size: 16px;
            border-radius: 5px;
            cursor: pointer;
        }
        .name {
            color: #fff;
            font-size: 16px;
            margin: 12px 0;
        }
        .description {
            display: -webkit-box;
            -webkit-line-clamp: 5;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-size: 14px;
            color: #999;
            line-height: 19px;
        }
    }
    .song-list {
        .song-item {
            margin-bottom: 60px !important;
        }
        .list-name {
            -webkit-line-clamp: 2 !important;
        }
    }
}

.page {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.tab-bar {
    margin: 30px 0;
    user-select: none;
    display: flex;
    justify-content: flex-end;
    .item {
        margin: 0 10px;
        color: #666;
        cursor: pointer;
    }
    .active {
        color: #409EFF;
    }
}


/*latestmusic.vue*/

.latest-music {
    width: 1100px;
    margin: 10px auto;
    .tab-bar {
        margin-top: 0 !important;
        span {
            color: #888;
        }
        .active {
            color: #409EFF !important;
        }
    }
}

.latest-music,
.result-tabs {
    table {
        width: 100%;
        thead {
            width: 100%;
            color: #999;
            height: 100px;
            th {
                text-align: left;
            }
        }
        tbody {
            width: 100%;
            padding-top: 20px;
            img {
                height: 70px;
                width: 70px;
                margin: 10px;
                border-radius: 5px;
            }
            tr:nth-of-type(even) {
                background-color: #fafafa;
            }
            tr:hover {
                background-color: #fafaea;
            }
            tr {
                color: #666;
                height: 90px;
            }
            .td-img {
                position: relative;
            }
            td {
                display: table-cell;
                vertical-align: middle;
            }
        }
    }
}


/* lastestmv.vue */

.lastest-mv {
    width: 1100px;
    .filter-wrap {
        width: 100%;
        .select-wrap {
            display: flex;
            margin: 20px 0;
        }
        .select-type {
            display: inline-block;
            color: #333;
            padding: 5px 10px;
        }
        .title {
            display: inline-block;
            color: #999;
            margin: 0 20px;
            padding: 5px 20px;
            border-radius: 20px;
        }
        .tab {
            display: inline-block;
            cursor: pointer;
        }
        .tab:nth-child(n+2) {
            border-left: 1px solid #eee;
        }
        .active {
            background-color: #fcfcf9;
            color: #409EFF;
        }
    }
    .mv-content {
        .mv-item {
            margin-bottom: 30px !important;
        }
    }
}


/*result.vue*/

.result-wrapper {
    width: 1100px;
    .result-title {
        margin: 20px 0;
        h1 {
            font-size: 24px;
            font-weight: bold;
            display: inline-block;
            margin-right: 10px;
        }
        span {
            color: #999;
        }
    }
    .result-tabs {
        width: 100%;
        tbody {
            tr {
                height: 50px !important;
            }
        }
    }
    .mv-item {
        margin-bottom: 30px !important;
    }
}